﻿@using SplendidCRM.Ext
@using SplendidCRM.Ext.CCBackendService
@using SplendidCRM.Ext.Helpers

@model BalanceRecordType[]

<div class="form-grid">
        <div  class="form-header">Result query</div>
        <table>
            <thead>
                <tr>
                    <td>BalanceDesc</td>
                    <td>Balance    </td>
                    <td>MinMeasureId	</td>
                    <td>UnitType</td>
                    <td>AccountType</td>
                    <td>ExpireTime    </td>
                    <td>AccountCredit</td>
                    <td>AccountKey</td>
                    <td>ProductID</td>
                    <td>ProductOrderKey</td>
                </tr>
            </thead>
            <tbody>
            @foreach (var tt in Model)
            {
                <tr>
                    <td>@tt.BalanceDesc</td>
                    <td>@tt.Balance</td>
                    <td>@tt.MinMeasureId	</td>
                    <td>@tt.UnitType</td>
                    <td>@tt.AccountType</td>
                    <td>@tt.ExpireTime.ToStandardDatetime()</td>
                    <td>@tt.AccountCredit</td>
                    <td>@tt.AccountKey</td>
                    <td>@tt.ProductID</td>
                    <td>@tt.ProductOrderKey</td>
                    
                </tr>
            }
            </tbody>
        </table>
    </div>    